<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <head>
    <title>Edit host</title>
  </head>

  <body>
    <div id="ctxtnav" class="nav"></div>

    <div id="content" class="hosts">
		<form action="/hosts/edit" method="post">
		<input type="hidden" name="id" value="${id}" />
		<table class="hosts_table">
			<tr>
				<td>Name:</td>
				<td><input type="text" name="name" value="${data[0]}" /></td>
			</tr>
			<tr>
				<td>Marker:</td>
				<td><input type="text" name="mark" value="${data[1]}" /></td>
			</tr>	
			<tr>
				<td>Description:</td>
				<td><input type="text" name="description" value="${data[2]}" /></td>
			</tr>
			<tr>
				<td>CPU:</td>
				<td><input type="text" name="cpu" value="${data[3]}" /></td>
			</tr>
			<tr>
				<td>RAM:</td>
				<td><input type="text" name="ram" value="${data[4]}" /></td>
			</tr>
			<tr>
				<td>Disk:</td>
				<td><input type="text" name="disk" value="${data[5]}" /></td>
			</tr>
			<tr>
				<td>OS:</td>
				<td><input type="text" name="os" value="${data[6]}" /></td>
			</tr>
			<tr>
				<td>IP:</td>
				<td><textarea name="ip">${data[7]}</textarea></td>
			</tr>
			<tr>
				<td>Rack unit:</td>
				<td><input type="text" name="rack_unit" value="${data[8]}" /></td>
			</tr>
			<tr>
				<td>KVM:</td>
				<td><input type="text" name="kvm" value="${data[9]}" /></td>
			</tr>
			<tr>
				<td>KVM name:</td>
				<td><input type="text" name="kvm_name" value="${data[10]}" /></td>
			</tr>
		</table>
		<br />
		<input type="submit" value="Apply" />
		</form>
    </div>
  </body>
</html>